/*    
 * Copyright (c) 2013 ISoftStone, Inc.
 * All right reserved.
 *
 * 文件名：      BillingListServiceImpl.java
 * 作者:     Jacky Wang
 * 创建日期： 2013-9-17 下午05:20:47
 * 版本：           
 *
 */
package com.isoftstone.industry.aaa.core.service.assist.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.isoftstone.industry.persistance.bean.AccountItem;
import com.isoftstone.industry.persistance.bean.BillingCycle;
import com.isoftstone.industry.persistance.bean.BillingList;
import com.isoftstone.industry.aaa.core.dao.assist.BillingListDao;
import com.isoftstone.industry.aaa.core.service.assist.IBillingListService;
import com.isoftstone.modules.core.persistence.IGenericDao;
import com.isoftstone.modules.core.service.impl.GenericServiceImpl;

/**
 * @author jacky
 */
@Service
public class BillingListServiceImpl extends GenericServiceImpl<BillingList, String> implements IBillingListService
{

	@Resource
	private BillingListDao	billingListDao;

	@Override
	public IGenericDao<BillingList, String> getDao()
	{
		return billingListDao;
	}

	@Override
	public List<BillingList> findGroupListByUser(String userId, BillingCycle billingCycle)
	{
		return billingListDao.getGroupListByUser(userId, billingCycle);
	}

	@Override
	public void update4AcctItem(String[] ids, AccountItem acctItem)
	{
		billingListDao.update4AcctItem(ids,acctItem);
	}

	@Override
	public List<BillingList> findNeedPrepaidItems(int start, int limit)
	{
		return billingListDao.getNeedPrepaidItems(start, limit);
	}

	@Override
	public long countNeedPrepaidItems()
	{
		return billingListDao.countNeedPrepaidItems();
	}

}
